﻿ @model HomeCareLibrary.Models.LoginWebModel 
<div class="col-lg-9 col-sm-9 right_part">

          <div class="login-page">
            <div class="title clearfix">
              
              <div class="top-btn-per clearfix">
                
                  @if (ViewBag.CheckLogOut==null || ViewBag.CheckLogOut == string.Empty)
                      {
                      <div class="back-button"><a href="javascript:void(0);" onclick="goBack()"><img class="back-btn" src="@Url.Content("~/images/personalization-images/back-btn.png")" alt="back-btn">
                <img class="back-mob-btn" src="@Url.Content("~/images/personalization-images/back-mob-btn.png")" alt="back-mob-btn">
                </a></div>
                      }

                
                    
                <div class="ques-button"><a href="#"><img alt="ques-btn" src="@Url.Content("~/images/personalization-images/ques-btn.png")" class="ques-bt">
                <img alt="ques-btn" src="@Url.Content("~/images/personalization-images/mobques-btn.png")" class="mobques-bt">
                </a></div>
              </div>
            </div>
            <div class="main-content">
              <div class="personalization-content">
                <div class="personalization-bg">
                  <div class="personalization-inn">
                          <div class="personalization-data update-per-data" >
                          <br />
                            <h3 class="personalization-heading">Login</h3>
                             @* @using (Ajax.BeginForm("LoginSubmit", "Home", new AjaxOptions
                                        {
                                            HttpMethod = "POST",
                                            LoadingElementId = "wait",
                                            OnSuccess = "success",



                                        }, new { id = "FormLogin" }))
                               {*@
                             <p class="txt">If you have already setup Home Wizard online or on a mobile device,<br />
then enter your username and password below. </p>
<p class="top-data">Or if you can <a href="@Url.Action("Initialsetup","Home")">setup new.</a></p>
                              <br>
                            @if (!string.IsNullOrEmpty(ViewBag.InvalidLogin))
                   {
                       <span><strong style="color: Red">@ViewBag.InvalidLogin</strong>
                                    </span>
                   }
                            <div class="Dwelling-part login-form">
                              <div class="form-per">
                                <form id="LoginForm" method="post" action='@Url.Action("Login", "Home")' role="form">
                                        <input type="hidden" name="ReturnURL" value="@ViewBag.ReturnURL" />
                                  <div class="form-group">
                                    
                                    @Html.TextBoxFor(m => m.ParamUserName, new { @class = "input-box form-control", name = "txtUserName", placeholder = "Username or email address" })
                                  </div>
                                  <div class="form-group">
                                   
                                       @Html.TextBoxFor(m => m.ParamPassword, new { @class = "input-box form-control", type = "password", placeholder = "Password" })
                                  </div>
                                  <br />
                                  <div class="checkbox text-center">
                                  <label>
                                    <strong><a href="@Url.Action("ForgotPassword","Home")">forgot your password?</a></strong>
                                  </label>
                                </div>
                                <br />
                                <div class="button">
                              <button  id="btnLogin" class="btn-per" type="submit">Submit</button>
                            </div>
                                </form>
                              </div>
                            </div>
                               <br />

                              <span style="margin-left:10px;">
                 Error:
                    @if (ViewBag.errorMessage != string.Empty)
                   {
                      @ViewBag.errorMessage
                   }
                      </span>
 <br /> <br />

                               <span style="margin-left:10px;">
                  Get Session User Id:
                    @if (ViewBag.getUserSessionId != string.Empty)
                   {
                      @ViewBag.getUserSessionId
                   }
                      </span>

                              <br /> <br />

                 
                                           <span style="margin-left:10px;">
                   
      Session Ids with values:
                      @if (ViewBag.sessionIds != string.Empty)
                   {
                      @ViewBag.sessionIds
                   } <br /><br />

                           <span>
                 Session:
                    @if (ViewBag.getSession != string.Empty)
                   {
                      @ViewBag.getSession
                   }
                      </span>


                           <br /><br />
     
     
     JSON:
                    @if (ViewBag.JsonString != string.Empty)
                   {
                      @ViewBag.JsonString
                   }</span>

<br /><br />
                         <span style="margin-left:10px;">
                  Request Content-Type:
                    @if (ViewBag.ContentType != string.Empty)
                   {
                      @ViewBag.ContentType
                   }
                      </span>

                      <br /><br />
                         <span style="margin-left:10px;">
                  Request URL:
                    @if (ViewBag.Url != string.Empty)
                   {
                      @ViewBag.Url
                   }
                      </span>
                          </div>




                        
                  </div>
                </div>
              </div>
            </div>
          </div>
          </div>
@*@section script{
     @Scripts.Render("~/Scripts/BundledScriptsInitialSetup")
    <script type="text/javascript">
        function isValidEmailAddress(emailAddress) {
            var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
            return pattern.test(emailAddress);
        }
    </script>
    }*@
